package com.yan.service.serviceImpl;

import com.yan.dao.StudentMapper;
import com.yan.pojo.Student;
import com.yan.service.StudentService;

import java.util.List;

public class StudentServiceImpl implements StudentService {

    private StudentMapper studentMapper;
    public void setStudentDao(StudentMapper studentMapper) {
        this.studentMapper = studentMapper;
    }

    @Override
    public List<Student> studentByStu(Integer studentId) {
        return studentMapper.studentByStu(studentId);
    }

    @Override
    public boolean updateStudent02(Student student) {
        return studentMapper.updateStudent02(student);
    }

    @Override
    public boolean updatePassword(Integer studentId, String newPassword) {
        return studentMapper.updatePassword(studentId, newPassword);
    }

    @Override
    public boolean registerStudent(Integer studentId, String password) {
        return studentMapper.registerStudent(studentId, password);
    }
}
